﻿@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm("ExecuteQuery", "Query"))
{
    string databaseId = ViewBag.Database.Index.ToString();
    
    @Html.Hidden("databaseId", databaseId)
    
    @Html.TextArea("query")
    
    <div>
        <input type="submit" value="Execute" />
    </div>
}